package shuogg.xstream.demo;

import java.util.ArrayList;
import java.util.List;

public class ClassRoom {
    private String classNumber;
    private int studentCnt;
    private List<Student> students = new ArrayList<Student>();

    public String getClassNumber() {
        return classNumber;
    }

    public void setClassNumber(String classNumber) {
        this.classNumber = classNumber;
    }

    public int getStudentCnt() {
        return studentCnt;
    }

    public void setStudentCnt(int studentCnt) {
        this.studentCnt = studentCnt;
    }

    public List<Student> getStudents() {
        return students;
    }

    public void setStudents(List<Student> students) {
        this.students = students;
    }

    public void addStudent(Student student) {
        students.add(student);
    }

}
